package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "db_supplier")
@ApiModel(value = "供应商实体类")
public class Supplier implements Serializable {


    private static final long serialVersionUID = 1L;

    @TableId(value = "Supplier_id",type = IdType.AUTO)
    @ApiModelProperty(value = "供应商的id")
    private String id;

    @TableField(value = "Supplier_name")
    @ApiModelProperty(value = "供应商名称")
    private String name;

    @TableField(value = "Supplier_address")
    @ApiModelProperty(value = "供应商地址")
    private String address;

    @TableField(value = "Supplier_tel")
    @ApiModelProperty(value = "供应商联系电话")
    private String tel;

    @TableField(value = "Supplier_leader")
    @ApiModelProperty(value = "供应商负责人")
    private String leader;
}
